import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueRouter from 'vue-router'
import store from './store/store'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import iViewPro from '@/libs/iview-pro/iview-pro.min.js'
//iconfont
import './assets/iconfont/iconfont.js'

import request from '@/request/request'
import API from '@/request/apis'
Vue.prototype.httpPost = request.post
Vue.prototype.httpGet = request.get
Vue.prototype.API = API

// 全局组件
import Icons from '@/components/common/Icons'
import Lines from '@/components/common/Lines'
Vue.component('Icons', Icons)
Vue.component('Lines', Lines)

// 注册公共事件$Bus
Vue.prototype.$Bus = new Vue()
Vue.use(iViewPro)
Vue.use(ViewUI)
Vue.use(VueRouter)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
